﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Pay.DTO;
using Pay.TO;

namespace Pay.IService {
    public interface ILogisticsDetailsService {
        /// <summary>
        /// 新增物流明细
        /// </summary>
        /// <param name="dto"></param>
        int Add(logistics_details_dto dto);
        /// <summary>
        ///根据物流Id 获取物流详情列表
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        logistic_results GetList(order_dto order);
        /// <summary>
        /// 根据订单 获取物流信息
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        Task<logistic_results> GetLogisticInfo(order_dto order);
        /// <summary>
        /// 获取国外物流状态
        /// </summary>
        /// <returns></returns>
        List<logistics_details_dto> GetDeteil(long order_id);
        /// <summary>
        /// 通过物流id获取国外物流
        /// </summary>
        /// <param name="logistics"></param>
        /// <returns></returns>
        List<logistics_details_dto> GetLogisticsDeteil(List<logistics_list_dto> logistics);
        /// 查询物流某个状态是否存在
        /// </summary>
        /// <param name="LogisticId"></param>
        /// <param name="statuss"></param>
        /// <returns></returns>
        logistics_details_dto GetLogistics(long LogisticId, LogisticsStatuss statuss);
        /// <summary>
        /// 快递100 物流
        /// </summary>
        /// <param name="order"></param>
        /// <returns></returns>
        k100_logistic_results GetK100List(order_dto order);
    }
}
